﻿namespace Networks.Data
{
    public class UserData
    {
        public string username;
    }

    public class ChatRecord
    {
        public string name;
        public string dialog;

        public ChatRecord() { }

        public ChatRecord(string userName, string userDialog)
        {
            this.name = userName;
            this.dialog = userDialog;
        }
    }

    //-------------------------------------------
    public class RoomData
    {
        public int roomId;
        public string roomName;
        public string owner;    // 房主userID
        public int playersNum;  // 玩家数量
        public int maxPlayers;  // 最大玩家数量
        public int gameState;   // 

        public RoomData()
        {
            playersNum = 0;
            maxPlayers = 0;
            gameState = (int)Networks.ROOM.GAME_STATE.INVALID;
        }
    }

    //-------------------------------------------
    public class PlayerData
    {
        public string userID;
        public int seat;
        public bool isReady;

        public PlayerData()
        {

        }
    }
}